# 移动零

class Solution:

    def moveZeros(self, nums):

        if not nums:
            return
        
        j = 0
        for i in range(len(nums)):
            # 这里注意了，i一定是走在j前面的
            if nums[i] != 0:
                nums[j] = nums[i]
                j += 1
            
        for k in range(j, len(nums)):

            nums[k] = 0
    







